package com.kgc;

import com.github.pagehelper.PageInfo;
import com.kgc.pojo.EbookEntry;
import com.kgc.service.SelectAllService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"classpath:applicationContext.xml"})
public class EnText {

    @Autowired
    private SelectAllService selectAllService;

@Test
    public void test01(){
        PageInfo<EbookEntry> ebookEntryPageInfo = selectAllService.selectEbookEntryById(1, 1, 3);
        System.out.println(ebookEntryPageInfo);
    }
}
